Creates an new on-file Account and new Customer. Introduced in 2023.1
            | Method | CreateOnFileAccount | 
The request body is of type CreateOnFileAccount.
| Name | Description | Data Type | 
|---|---|---|
| The email address for the Account. | xml:string | |
| Password | The password to use for the Account. | xml:string | 
| FirstName | The first name of the Account holder. | xml:string | 
| LastName | The last name of the Account holder. | xml:string | 
| CompanyName | The name of the company for the Account holder. | xml:string | 
| Telephone | The primary phone number for the Account holder. | xml:string | 
| TelephoneExtension | The primary phone extension for th e Account holder. | xml:string | 
| AlternateTelephone | An optional, alternative phone number for the Account holder | xml:string | 
| AlternateTelephoneExtension | An optional, alternative phone extenstion for the Account holder | xml:string | 
| Fax | The fax number for the Account holder. | xml:string | 
| BillingAddress1 | Billing addresss line 1 for the Account. | xml:string | 
| BillingAddress2 | Billing addresss line 2 for the Account. | xml:string | 
| BillingAddress3 | Billing addresss line 3 for the Account. | xml:string | 
| BillingCity | Billing city for the Account. | xml:string | 
| BillingState | Billing state for the Account. | xml:string | 
| BillingZipCode | Billing zip code for the Account. | xml:string | 
| BillingCountry | Billing country for the Account. | xml:string | 
| ShippingAddress1 | Shipping address line 1 for the Account. | xml:string | 
| ShippingAddress2 | Shipping address line 2 for the Account. | xml:string | 
| ShippingAddress3 | Shipping address line 3 for the Account. | xml:string | 
| ShippingCity | Shipping city for the Account. | xml:string | 
| ShippingState | Shipping state for the Account. | xml:string | 
| ShippingZipCode | Shipping zip code for the Account. | xml:string | 
| ShippingCountry | Shipping country for the Account. | xml:string | 
// Example: Create a new on-file account and customer MakeAJAXCall("Visitor.CreateOnFileAccount", { Email: "address@email.com", Password: "123qwe", FirstName: "Barry", LastName: "Jones", CompanyName: "Whitehall", Telephone: "(508) 473-4825", TelephoneExtension: "123", AlternateTelephone: "(508) 555-1212", AlternateTelephoneExtension: "678", Fax: "(508) 555-1313", BillingAddress1: '123 Main Street', BillingAddress2: '', BillingAddress3: '', BillingCity: 'Alberquerque', BillingState: 'NM', BillingZipCode: '88888', BillingCountry: 'US', ShippingAddress1: '482 Sout Street', ShippingAddress2: 'Unit 322', ShippingAddress3: '', ShippingCity: 'Radiator Springs', ShippingState: 'NV', ShippingZipCode: '83522', ShippingCountry: 'US', }, console.log)
The response body is of type CreateOnFileAccountResponse.
| Name | Description | Data Type | 
|---|---|---|
| CreateOnFileAccountResult | A string value containing a JSON object. 
{
    "Data": {
        "CustomerNumber": "000000000000013",
        "CustomerName": "Out of Africa",
        "FirstName": "Barry",
        "LastName": "Jones",
        "Email": "address@test.dovetailinternet.com"
    },
    "LookupData": {},
    "Result": {
        "Success": true,
        "Message": "Customer '3864906629' was created successfully.The Shopper's on-file account has been updated successfully. The account has been logged-in successfully.",
        "ElapsedTime": "3741 ms"
    }
}
  | xml:string |